Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Layers Namespace / ViewState Class / SetLayerUIState Method / SetLayerUIState(String,Nullable<Boolean>) Method
The name of the target layer.
The desired state of the layer.

In This Topic
    SetLayerUIState(String,Nullable<Boolean>) Method
    In This Topic
    Sets the visibility of an optional content group (layer) in the context of an end-user UI. The state is interpreted as follows:
    • true: the user explicitly made layerName visible.
    • false: the user explicitly made layerName hidden.
    • a null reference (Nothing in Visual Basic): the user did not change the visibility of layerName.
    Syntax
    'Declaration
     
    Public Overloads Sub SetLayerUIState( _
       ByVal layerName As System.String, _
       ByVal state As System.Nullable(Of Boolean) _
    ) 
    public void SetLayerUIState( 
       System.string layerName,
       System.Nullable<bool> state
    )

    Parameters

    layerName
    The name of the target layer.
    state
    The desired state of the layer.
    See Also